// 用户相关路由
export const userRoutes = [
    {
        path: '/user/login',
        name: 'UserLogin',
        component: () => import('@/views/User/UserLogin.vue'),
        meta: {
            title: '用户登录',
            requiresAuth: false
        }
    },
    {
        path: '/user/register',
        name: 'UserRegister',
        component: () => import('@/views/User/UserRegister.vue'),
        meta: {
            title: '用户注册',
            requiresAuth: false
        }
    },
    {
        path: '/user/auth',
        name: 'UserAuth',
        component: () => import('@/views/User/UserAuth.vue'),
        meta: {
            title: '用户认证',
            requiresAuth: false
        }
    }
]

// 主路由配置
export const routes = [
    {
        path: '/',
        name: 'index',
        component: () => import('@/components/TheWelcome.vue'),
        meta: {
            title: '主页',
            requiresAuth: false
        }
    },
    ...userRoutes,
    {
        path: '/:pathMatch(.*)*',
        name: 'NotFound',
        component: () => import('@/views/NotFound.vue'),
        meta: {
            title: '页面不存在'
        }
    }
]